<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
            <li><a href="{:U('ConstructionExamination/index')}">报审报验表管理</a></li>
            <if condition="($Role eq 2) AND ($userrole['role'] eq 5)">
            	<li><a href="{:U('ConstructionExamination/add')}">新增报审报验</a></li>
            </if>
            <li class="active"><a href="{:U('ConstructionExamination/auditHistory', array('id'=>I('request.id/s','')))}">审批流程</a></li>
        </ul>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>审核状态</th>
					<th>审核意见</th>
					<th>审批层级</th>
					<th>审核人</th>
					<th>审核部门</th>
					<th>审核时间</th>
				</tr>
			</thead>
			<tbody>
			<foreach name="audits" item="vo">
				<tr>
					<td>
                    	<if condition="$vo['audit_status'] eq 1">
                            同意
                        <else />
                            驳回
                        </if>
                    </td>
				    <td>{$vo.audit_reason}</td>
					<td>{$vo.audit_level} / <php>echo (intval(($vo['level'] != '' ? $vo['level'] : 0)) + 1) * 2;</php></td>
					<td>{$vo.real_name}</td>
					<td>{$vo.department_name}</td>
				    <td>{$vo.add_time}</td>
				</tr>
			</foreach>
			</tbody>			
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>